package com.hdax.dm.rest;

import com.hdax.dm.common.config.api.ItemControllerApi;
import com.hdax.dm.entity.item.DmItem;
import com.hdax.dm.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ItemRestService implements ItemControllerApi {

    @Autowired
    private ItemService itemService;


    @Override
    public DmItem item(Long itemId) {
        return itemService.itemOne(itemId);
    }
}
